<!-- compare icon on listing details -->

{assign var='compare_cookie_ids' value=','|explode:$smarty.cookies.compare_listings}
<div class="highlight details_compare_add" title="{if $listing_data.ID|in_array:$compare_cookie_ids}{$lang.compare_remove_from_compare}{else}{$lang.compare_add_to_compare}{/if}"><a rel="nofollow" href="javascript:void(0)" class="{if $listing_data.ID|in_array:$compare_cookie_ids}remove{else}add{/if}" accesskey="{$listing_data.ID}">&nbsp;</a></div>

<script type="text/javascript">
{literal}

$(document).ready(function(){
	$('div.details_compare_add').parent().addClass('relative');
	$('div.details_compare_add a').click(function(){
		flCompare.action($(this), true);
	});
});

{/literal}
</script>

<!-- compare icon on listing details end -->